<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: Jam
  Date: 2018/2/4
  Time: 17:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>addOrEdit</title>
</head>
<body>
<s:form action="doAddOrEdit.action" method="POST" name="adminUser">
    <s:hidden name="adminUser.id"/>
    <%--如果不加这个隐藏标签, 就会导致status属性为null--%>
    <s:hidden name="adminUser.status"/>
    <s:textfield label="用户名" name="adminUser.username"/>
    <s:textfield label="姓名" name="adminUser.realName"/>
    <s:select label="用户组" list="%{#request.groups}" name="adminUser.adminGroup.id"/>
    <s:submit value="提交"/>
</s:form>
</body>
</html>
